<form id="countValue">
<div align="center">
    <input type="hidden" name="ids" value="${ids!''}">

    <div align="center">
        <label>预估类型:</label>
        <input type="radio" name="useType" id="bishu" value="0"/><label for="bishu">笔数</label>
        <input type="radio" name="useType" id="jine" value="1" checked="checked"/><label for="jine">金额</label>　
    </div>
    <div id="div_jine" style="margin-top: 10px">
        <label>预估金额：</label>
        <input class="easyui-validatebox" type="text" name="estimatedMoney" data-options="required:true"
               style="width:50%"/>
    </div>
    <div hidden="hidden" id="div_bishu" style="margin-top: 10px">
        <label>预估笔数：</label>
        <input class="easyui-validatebox" type="text" name="estimatedValue" data-options="required:true"
               style="width:50%"/>
    </div>
    <div align="center" style="margin-top: 10px;">
        <button type="button" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="countValue()">计算</button>
    </div>
</div>
</form>
<script>
    $(function () {
        $("#ygje").hide();
        $(":radio").click(function () {
            var selectVal = $(this).val();
            if (selectVal == 1) {
                $("#div_jine").show();
                $("#div_bishu").hide();
            } else if (selectVal == 0) {
                $("#div_jine").hide();
                $("#div_bishu").show();
            }
        });
    })

    function countValue(){
        console.info($("#countValue").serialize());
        $.post(
             "${ctx}/offer/countCondition",
                $("#countValue").serialize(),
                function(data){
                    alert(data);
                }
        );
    }
</script>